var copyOpt = {
	copyTextToClipboard:function(text) {
	  var copyFrom = document.createElement("textarea");
	  copyFrom.textContent = text;
	  document.body.appendChild(copyFrom);
	  copyFrom.select();
	  document.execCommand('copy');
	  copyFrom.blur();
	  document.body.removeChild(copyFrom);
	},
	getFromClipboard:function(){
		var t = document.createElement("input");
		document.body.appendChild(t);
		t.focus();
		document.execCommand("paste");
		var clipboardText = t.value; //this is your clipboard data
		document.body.removeChild(t);
		return clipboardText;
	}
}
